package com.spring.aop.declareparents;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

/**
 * @ClassName DuckAnimal
 * @Description
 * @Author suncx
 * @Date 2020/6/27 15:00
 * @Version 1.0
 */
@Component("animal")
public class DuckAnimal implements Animal {
    public void swim() {
        System.out.println("鸭子喜欢游泳。。。");
    }
}
